<!-- XHTML 1.0 Strict -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<meta name="author" content="Rachid Touzani" />
<meta name="keywords" content=" css, dropdowns, dropdown menu, drop-down, menu, navigation, nav, horizontal, vertical left-to-right, vertical right-to-left, horizontal linear, horizontal upwards, cross browser, internet explorer, ie, firefox, safari, opera, browser, lwis" />
<meta name="description" content="Clean, standards-friendly, modular framework for dropdown menus" />
<link href="../css/dropdown.vertical.css" media="screen" rel="stylesheet" type="text/css" />
<link href="../css/default.ultimate.css" media="screen" rel="stylesheet" type="text/css" />
<head>
<!-- Title -->
<title>OFELI - Documentation</title>
<!-- Stylesheet -->
<link rel="stylesheet" type="text/css" href="../doxygen.css" />
<link rel="stylesheet" type="text/css" href="../tabs.css" />
</head>
<body>
<p align="center">
  <img src="../im/ofeli.gif" alt="OFELI's Logo" width="300" height="90">
</p>
<p align="center"><font color="#203F5B" size="4" face="verdana,Helvetica">
<b>An Object Oriented Finite Element Library</b></font></p>
<!-- Complete Page-->
<div id="main">
<div id="mainmenu">
 <div class="text">
<!-- Menu -->
 <div class="tabs">
  <ul class="tablist">
   <li><a href="../index.html"><span>Home</span></a>
    <li><a href="../overview.html"><span>Overview</span></a>
    <li><a href="../extlib.html"><span>External Libraries</span></a>
    <li><a href="../citing.html"><span>Citing OFELI</span></a>
    <li><a href="../fformats.html"><span>File Formats</span></a>
    <li><a href="../demos.html"><span>Demo Codes</span></a>
  </ul>
 </div>
<!-- Generated by Doxygen 1.8.11 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('classOFELI_1_1Partition.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#friends">Friends</a> &#124;
<a href="classOFELI_1_1Partition-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">Partition Class Reference<div class="ingroups"><a class="el" href="group__OFELI.html">OFELI</a><a class="el" href="group__OFELI.html">OFELI</a> &raquo;  &#124; <a class="el" href="group__Mesh.html">Finite Element Mesh</a></div></div>  </div>
</div><!--header-->
<div class="contents">

<p>To partition a finite element mesh into balanced submeshes.  
 <a href="classOFELI_1_1Partition.html#details">More...</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:aeb0b54c7a8921893997dcef564301d2e"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aeb0b54c7a8921893997dcef564301d2e"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classOFELI_1_1Partition.html#aeb0b54c7a8921893997dcef564301d2e">Partition</a> ()</td></tr>
<tr class="memdesc:aeb0b54c7a8921893997dcef564301d2e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Default constructor. <br /></td></tr>
<tr class="separator:aeb0b54c7a8921893997dcef564301d2e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a454c8dbfaa205cd813063f03cb0b5134"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classOFELI_1_1Partition.html#a454c8dbfaa205cd813063f03cb0b5134">Partition</a> (<a class="el" href="classOFELI_1_1Mesh.html">Mesh</a> &amp;mesh, size_t n)</td></tr>
<tr class="memdesc:a454c8dbfaa205cd813063f03cb0b5134"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructor to partition a mesh into submeshes.  <a href="#a454c8dbfaa205cd813063f03cb0b5134">More...</a><br /></td></tr>
<tr class="separator:a454c8dbfaa205cd813063f03cb0b5134"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aad9beb9f6293a70bcdafd85d2f374a57"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classOFELI_1_1Partition.html#aad9beb9f6293a70bcdafd85d2f374a57">Partition</a> (<a class="el" href="classOFELI_1_1Mesh.html">Mesh</a> &amp;mesh, int n, vector&lt; int &gt; &amp;epart)</td></tr>
<tr class="memdesc:aad9beb9f6293a70bcdafd85d2f374a57"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructor using already created submeshes.  <a href="#aad9beb9f6293a70bcdafd85d2f374a57">More...</a><br /></td></tr>
<tr class="separator:aad9beb9f6293a70bcdafd85d2f374a57"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a06a424fc9f39cdf17053789970c8ed76"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a06a424fc9f39cdf17053789970c8ed76"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classOFELI_1_1Partition.html#a06a424fc9f39cdf17053789970c8ed76">~Partition</a> ()</td></tr>
<tr class="memdesc:a06a424fc9f39cdf17053789970c8ed76"><td class="mdescLeft">&#160;</td><td class="mdescRight">Destructor. <br /></td></tr>
<tr class="separator:a06a424fc9f39cdf17053789970c8ed76"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a99f3bd369f199669b81a864026110bd2"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a99f3bd369f199669b81a864026110bd2"></a>
size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classOFELI_1_1Partition.html#a99f3bd369f199669b81a864026110bd2">getNbSubMeshes</a> () const </td></tr>
<tr class="memdesc:a99f3bd369f199669b81a864026110bd2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return number of submeshes. <br /></td></tr>
<tr class="separator:a99f3bd369f199669b81a864026110bd2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a90c6c013728c2fdeacc5861c6e8a68f2"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a90c6c013728c2fdeacc5861c6e8a68f2"></a>
size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classOFELI_1_1Partition.html#a90c6c013728c2fdeacc5861c6e8a68f2">getNbNodes</a> (size_t i) const </td></tr>
<tr class="memdesc:a90c6c013728c2fdeacc5861c6e8a68f2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return number of nodes in given submesh. <br /></td></tr>
<tr class="separator:a90c6c013728c2fdeacc5861c6e8a68f2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a72032d38db510dbbe30b82a6a1fac1d3"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a72032d38db510dbbe30b82a6a1fac1d3"></a>
size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classOFELI_1_1Partition.html#a72032d38db510dbbe30b82a6a1fac1d3">getNbElements</a> (size_t i) const </td></tr>
<tr class="memdesc:a72032d38db510dbbe30b82a6a1fac1d3"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return number of elements in given submesh. <br /></td></tr>
<tr class="separator:a72032d38db510dbbe30b82a6a1fac1d3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9e82b4f211d06bd28b1bad18e63f4b41"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a9e82b4f211d06bd28b1bad18e63f4b41"></a>
<a class="el" href="classOFELI_1_1Mesh.html">Mesh</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classOFELI_1_1Partition.html#a9e82b4f211d06bd28b1bad18e63f4b41">getMesh</a> ()</td></tr>
<tr class="memdesc:a9e82b4f211d06bd28b1bad18e63f4b41"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return the global <a class="el" href="classOFELI_1_1Mesh.html" title="To store and manipulate finite element meshes. ">Mesh</a> instance. <br /></td></tr>
<tr class="separator:a9e82b4f211d06bd28b1bad18e63f4b41"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac2dc0b8f7dec70389a50db91c37cb5be"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ac2dc0b8f7dec70389a50db91c37cb5be"></a>
<a class="el" href="classOFELI_1_1Mesh.html">Mesh</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classOFELI_1_1Partition.html#ac2dc0b8f7dec70389a50db91c37cb5be">getMesh</a> (size_t i)</td></tr>
<tr class="memdesc:ac2dc0b8f7dec70389a50db91c37cb5be"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return the submesh of label <code>i</code> <br /></td></tr>
<tr class="separator:ac2dc0b8f7dec70389a50db91c37cb5be"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a70e8c1589c0bc44df038a2730b7e02eb"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classOFELI_1_1Partition.html#a70e8c1589c0bc44df038a2730b7e02eb">getNodeLabelInSubMesh</a> (size_t sm, size_t label) const </td></tr>
<tr class="memdesc:a70e8c1589c0bc44df038a2730b7e02eb"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return node label in subdomain by giving its label in initial mesh.  <a href="#a70e8c1589c0bc44df038a2730b7e02eb">More...</a><br /></td></tr>
<tr class="separator:a70e8c1589c0bc44df038a2730b7e02eb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0ecffbb25ed6d9bc47f6aafc52742456"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a0ecffbb25ed6d9bc47f6aafc52742456"></a>
size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classOFELI_1_1Partition.html#a0ecffbb25ed6d9bc47f6aafc52742456">getElementLabelInSubMesh</a> (size_t sm, size_t label) const </td></tr>
<tr class="memdesc:a0ecffbb25ed6d9bc47f6aafc52742456"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return element label in subdomain by giving its label in initial mesh. <br /></td></tr>
<tr class="separator:a0ecffbb25ed6d9bc47f6aafc52742456"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa227b3656cba62191f813c0a58e0b6d1"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classOFELI_1_1Partition.html#aa227b3656cba62191f813c0a58e0b6d1">getNodeLabelInMesh</a> (size_t sm, size_t label) const </td></tr>
<tr class="memdesc:aa227b3656cba62191f813c0a58e0b6d1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return node label in initial mesh by giving its label in submesh.  <a href="#aa227b3656cba62191f813c0a58e0b6d1">More...</a><br /></td></tr>
<tr class="separator:aa227b3656cba62191f813c0a58e0b6d1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a97b8906bb1fbf7a94fafd9b37d692c68"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a97b8906bb1fbf7a94fafd9b37d692c68"></a>
size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classOFELI_1_1Partition.html#a97b8906bb1fbf7a94fafd9b37d692c68">getElementLabelInMesh</a> (size_t sm, size_t label) const </td></tr>
<tr class="memdesc:a97b8906bb1fbf7a94fafd9b37d692c68"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return element label in initial mesh by giving its label in submesh. <br /></td></tr>
<tr class="separator:a97b8906bb1fbf7a94fafd9b37d692c68"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a62985e60d540866196dc90a5e5443c23"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a62985e60d540866196dc90a5e5443c23"></a>
size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classOFELI_1_1Partition.html#a62985e60d540866196dc90a5e5443c23">getNbInterfaceSides</a> (size_t sm) const </td></tr>
<tr class="memdesc:a62985e60d540866196dc90a5e5443c23"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return Number of interface sides for a given sub-mesh. <br /></td></tr>
<tr class="separator:a62985e60d540866196dc90a5e5443c23"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8a0cf3525fb1623ab80692b190245137"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classOFELI_1_1Partition.html#a8a0cf3525fb1623ab80692b190245137">getSubMesh</a> (size_t sm, size_t i) const </td></tr>
<tr class="memdesc:a8a0cf3525fb1623ab80692b190245137"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return index of submesh that contains the <code>i</code>-th side label in sub-mesh <code>sm</code>  <a href="#a8a0cf3525fb1623ab80692b190245137">More...</a><br /></td></tr>
<tr class="separator:a8a0cf3525fb1623ab80692b190245137"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afd10c9eba2c6b2aff8639d0c576ad622"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classOFELI_1_1Mesh.html">Mesh</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classOFELI_1_1Partition.html#afd10c9eba2c6b2aff8639d0c576ad622">getSubMesh</a> (size_t i) const </td></tr>
<tr class="memdesc:afd10c9eba2c6b2aff8639d0c576ad622"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return reference to submesh.  <a href="#afd10c9eba2c6b2aff8639d0c576ad622">More...</a><br /></td></tr>
<tr class="separator:afd10c9eba2c6b2aff8639d0c576ad622"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a62caa8a13a0ec478c97d8035769094b8"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classOFELI_1_1Partition.html#a62caa8a13a0ec478c97d8035769094b8">getFirstSideLabel</a> (size_t sm, size_t i) const </td></tr>
<tr class="memdesc:a62caa8a13a0ec478c97d8035769094b8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return i-th side label in a given submesh.  <a href="#a62caa8a13a0ec478c97d8035769094b8">More...</a><br /></td></tr>
<tr class="separator:a62caa8a13a0ec478c97d8035769094b8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a66d0a03fec1c03b6706d4ecd52167e89"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classOFELI_1_1Partition.html#a66d0a03fec1c03b6706d4ecd52167e89">getSecondSideLabel</a> (size_t sm, size_t i) const </td></tr>
<tr class="memdesc:a66d0a03fec1c03b6706d4ecd52167e89"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return side label in the neighbouring submesh corresponding to <code>i</code>-th side label in sub-mesh <code>sm</code>  <a href="#a66d0a03fec1c03b6706d4ecd52167e89">More...</a><br /></td></tr>
<tr class="separator:a66d0a03fec1c03b6706d4ecd52167e89"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af7d9b0d7d23b3134d92f10b682a346c3"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classOFELI_1_1Partition.html#af7d9b0d7d23b3134d92f10b682a346c3">getNbConnectInSubMesh</a> (int n, int s) const </td></tr>
<tr class="memdesc:af7d9b0d7d23b3134d92f10b682a346c3"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get number of connected nodes in a submesh.  <a href="#af7d9b0d7d23b3134d92f10b682a346c3">More...</a><br /></td></tr>
<tr class="separator:af7d9b0d7d23b3134d92f10b682a346c3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6b2b998b6e1b098c1147c79e98efbd1a"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classOFELI_1_1Partition.html#a6b2b998b6e1b098c1147c79e98efbd1a">getNbConnectOutSubMesh</a> (int n, int s) const </td></tr>
<tr class="memdesc:a6b2b998b6e1b098c1147c79e98efbd1a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get number of connected nodes out of a submesh.  <a href="#a6b2b998b6e1b098c1147c79e98efbd1a">More...</a><br /></td></tr>
<tr class="separator:a6b2b998b6e1b098c1147c79e98efbd1a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad1a4ccf74ace2f858a4a972f96959401"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classOFELI_1_1Partition.html#ad1a4ccf74ace2f858a4a972f96959401">put</a> (size_t n, string file) const </td></tr>
<tr class="memdesc:ad1a4ccf74ace2f858a4a972f96959401"><td class="mdescLeft">&#160;</td><td class="mdescRight">Save a submesh in file.  <a href="#ad1a4ccf74ace2f858a4a972f96959401">More...</a><br /></td></tr>
<tr class="separator:ad1a4ccf74ace2f858a4a972f96959401"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8b1dccfc12683d2bbc3891a331753c42"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a8b1dccfc12683d2bbc3891a331753c42"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classOFELI_1_1Partition.html#a8b1dccfc12683d2bbc3891a331753c42">set</a> (<a class="el" href="classOFELI_1_1Mesh.html">Mesh</a> &amp;mesh, size_t n)</td></tr>
<tr class="memdesc:a8b1dccfc12683d2bbc3891a331753c42"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set <a class="el" href="classOFELI_1_1Mesh.html" title="To store and manipulate finite element meshes. ">Mesh</a> instance. <br /></td></tr>
<tr class="separator:a8b1dccfc12683d2bbc3891a331753c42"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="friends"></a>
Friends</h2></td></tr>
<tr class="memitem:a1eb137ef19932ec2569f8c9904694a53"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a1eb137ef19932ec2569f8c9904694a53"></a>
ostream &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classOFELI_1_1Partition.html#a1eb137ef19932ec2569f8c9904694a53">operator&lt;&lt;</a> (ostream &amp;s, const <a class="el" href="classOFELI_1_1Partition.html">Partition</a> &amp;p)</td></tr>
<tr class="memdesc:a1eb137ef19932ec2569f8c9904694a53"><td class="mdescLeft">&#160;</td><td class="mdescRight">Output class information. <br /></td></tr>
<tr class="separator:a1eb137ef19932ec2569f8c9904694a53"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>To partition a finite element mesh into balanced submeshes. </p>
<p>Class <a class="el" href="classOFELI_1_1Partition.html" title="To partition a finite element mesh into balanced submeshes. ">Partition</a> enables partitioning a given mesh into a given number of submeshes with a minimal connectivity. <a class="el" href="classOFELI_1_1Partition.html" title="To partition a finite element mesh into balanced submeshes. ">Partition</a> uses the well known <code>metis</code> library that is included in the <a class="el" href="namespaceOFELI.html" title="A namespace to group all library classes, functions, ... ">OFELI</a> library. A more detailed description of metis can be found in the web site:<br />
<a href="http://www.csit.fsu.edu/~burkardt/c_src/metis/metis.html">http://www.csit.fsu.edu/~burkardt/c_src/metis/metis.html</a></p>
<dl class="section author"><dt>Author</dt><dd>Rachid Touzani </dd></dl>
<dl class="section copyright"><dt>Copyright</dt><dd>GNU Lesser Public License </dd></dl>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a454c8dbfaa205cd813063f03cb0b5134"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classOFELI_1_1Partition.html">Partition</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classOFELI_1_1Mesh.html">Mesh</a> &amp;&#160;</td>
          <td class="paramname"><em>mesh</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>n</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Constructor to partition a mesh into submeshes. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">mesh</td><td><a class="el" href="classOFELI_1_1Mesh.html" title="To store and manipulate finite element meshes. ">Mesh</a> instance </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">n</td><td>Number of submeshes </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="aad9beb9f6293a70bcdafd85d2f374a57"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classOFELI_1_1Partition.html">Partition</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classOFELI_1_1Mesh.html">Mesh</a> &amp;&#160;</td>
          <td class="paramname"><em>mesh</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>n</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">vector&lt; int &gt; &amp;&#160;</td>
          <td class="paramname"><em>epart</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Constructor using already created submeshes. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">mesh</td><td><a class="el" href="classOFELI_1_1Mesh.html" title="To store and manipulate finite element meshes. ">Mesh</a> instance </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">n</td><td>Number of submeshes </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">epart</td><td>Vector containing for each element its submesh label (Running from 0 to <code>n-1</code> </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="a70e8c1589c0bc44df038a2730b7e02eb"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">size_t getNodeLabelInSubMesh </td>
          <td>(</td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>sm</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>label</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Return node label in subdomain by giving its label in initial mesh. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">sm</td><td>Label of submesh </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">label</td><td>Label of node in initial mesh </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="aa227b3656cba62191f813c0a58e0b6d1"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">size_t getNodeLabelInMesh </td>
          <td>(</td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>sm</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>label</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Return node label in initial mesh by giving its label in submesh. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">sm</td><td>Label of submesh </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">label</td><td><a class="el" href="classOFELI_1_1Node.html" title="To describe a node. ">Node</a> label </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a8a0cf3525fb1623ab80692b190245137"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">size_t getSubMesh </td>
          <td>(</td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>sm</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>i</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Return index of submesh that contains the <code>i</code>-th side label in sub-mesh <code>sm</code> </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">sm</td><td>Submesh index </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">i</td><td><a class="el" href="classOFELI_1_1Side.html" title="To store and treat finite element sides (edges in 2-D or faces in 3-D) ">Side</a> label </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Index of submesh </dd></dl>

</div>
</div>
<a class="anchor" id="afd10c9eba2c6b2aff8639d0c576ad622"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classOFELI_1_1Mesh.html">Mesh</a>&amp; getSubMesh </td>
          <td>(</td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>i</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Return reference to submesh. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">i</td><td>Submesh index </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Reference to corresponding <a class="el" href="classOFELI_1_1Mesh.html" title="To store and manipulate finite element meshes. ">Mesh</a> instance </dd></dl>

</div>
</div>
<a class="anchor" id="a62caa8a13a0ec478c97d8035769094b8"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">size_t getFirstSideLabel </td>
          <td>(</td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>sm</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>i</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Return i-th side label in a given submesh. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">sm</td><td>Index of submesh </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">i</td><td>Label of side </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a66d0a03fec1c03b6706d4ecd52167e89"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">size_t getSecondSideLabel </td>
          <td>(</td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>sm</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>i</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Return side label in the neighbouring submesh corresponding to <code>i</code>-th side label in sub-mesh <code>sm</code> </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">sm</td><td>Label of submesh </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">i</td><td><a class="el" href="classOFELI_1_1Side.html" title="To store and treat finite element sides (edges in 2-D or faces in 3-D) ">Side</a> label </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="af7d9b0d7d23b3134d92f10b682a346c3"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int getNbConnectInSubMesh </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>n</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>s</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get number of connected nodes in a submesh. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">n</td><td>Label of node for which connections are counted </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">s</td><td>Label of submesh (starting from 0) </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a6b2b998b6e1b098c1147c79e98efbd1a"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int getNbConnectOutSubMesh </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>n</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>s</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get number of connected nodes out of a submesh. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">n</td><td>Label of node for which connections are counted </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">s</td><td>Label of submesh (starting from 0) </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ad1a4ccf74ace2f858a4a972f96959401"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void put </td>
          <td>(</td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>n</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">string&#160;</td>
          <td class="paramname"><em>file</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Save a submesh in file. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">n</td><td>Label of submesh </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">file</td><td>Name of file in which submesh is saved </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->

</div> <!-- class text -->
</div> <!-- main menu -->
<!-- Google Search -->
<br><br>
<center>
  <div id="cse" style="width: 80%;">Loading</div>
  <script src="http://www.google.com/jsapi" type="text/javascript"></script>
  <script type="text/javascript"> 
     google.load('search', '1', {language : 'en', style : google.loader.themes.SHINY});
     google.setOnLoadCallback(function() {
        var customSearchOptions = {};  var customSearchControl = new google.search.CustomSearchControl(
        '012396140824982761142:-qrywxcfi_o', customSearchOptions);
        customSearchControl.setResultSetSize(google.search.Search.FILTERED_CSE_RESULTSET);
        customSearchControl.draw('cse');
     }, true);
   </script>
   <style type="text/css">
     .gsc-control-cse {
     font-family: Verdana, sans-serif;
     border-color: #DAE0E5;
     background-color: #DAE0E5;
   }
   .gsc-control-cse .gsc-table-result { font-family: Verdana, sans-serif; }
   input.gsc-input { border-color: #B6BEC5; }
   input.gsc-search-button {
     border-color: #B6BEC5;
     background-color: #D0D1D4;
   }
   .gsc-tabHeader.gsc-tabhInactive {
     border-color: #999999;
     background-color: #EEEEEE;
   }
   .gsc-tabHeader.gsc-tabhActive {
     border-color: #999999;
     background-color: #999999;
   }
   .gsc-tabsArea { border-color: #999999; }
   .gsc-webResult.gsc-result,
   .gsc-results .gsc-imageResult {
     border-color: #FFFFFF;
     background-color: #FFFFFF;
   }
   .gsc-webResult.gsc-result:hover,
   .gsc-imageResult:hover {
     border-color: #D2D6DC;
     background-color: #EDEDED;
   }
   .gsc-webResult.gsc-result.gsc-promotion:hover {
     border-color: #D2D6DC;
     background-color: #EDEDED;
   }
   .gs-webResult.gs-result a.gs-title:link,
   .gs-webResult.gs-result a.gs-title:link b,
   .gs-imageResult a.gs-title:link,
   .gs-imageResult a.gs-title:link b { color: #0568CD; }
   .gs-webResult.gs-result a.gs-title:visited,
   .gs-webResult.gs-result a.gs-title:visited b,
   .gs-imageResult a.gs-title:visited,
   .gs-imageResult a.gs-title:visited b { color: #0568CD; }
   .gs-webResult.gs-result a.gs-title:hover,
   .gs-webResult.gs-result a.gs-title:hover b,
   .gs-imageResult a.gs-title:hover,
   .gs-imageResult a.gs-title:hover b { color: #0568CD; }
   .gs-webResult.gs-result a.gs-title:active,
   .gs-webResult.gs-result a.gs-title:active b,
   .gs-imageResult a.gs-title:active,
   .gs-imageResult a.gs-title:active b { color: #0568CD; }
   .gsc-cursor-page { color: #0568CD; }
   a.gsc-trailing-more-results:link { color: #0568CD; }
   .gs-webResult .gs-snippet,
   .gs-imageResult .gs-snippet,
   .gs-fileFormatType { color: #5F6A73; }
   .gs-webResult div.gs-visibleUrl,
   .gs-imageResult div.gs-visibleUrl { color: #5F6A73; }
   .gs-webResult div.gs-visibleUrl-short { color: #5F6A73; }
   .gs-webResult div.gs-visibleUrl-short { display: none; }
   .gs-webResult div.gs-visibleUrl-long { display: block; }
   .gs-promotion div.gs-visibleUrl-short { display: none; }
   .gs-promotion div.gs-visibleUrl-long { display: block; }
   .gsc-cursor-box { border-color: #FFFFFF; }
   .gsc-results .gsc-cursor-box .gsc-cursor-page {
      border-color: #999999;
      background-color: #FFFFFF;
      color: #0568CD;
   }
   .gsc-results .gsc-cursor-box .gsc-cursor-current-page {
      border-color: #999999;
      background-color: #999999;
      color: #0568CD;
   }
   .gsc-webResult.gsc-result.gsc-promotion {
      border-color: #D2D6DC;
      background-color: #D0D1D4;
   }
   .gsc-completion-title { color: #0568CD; }
   .gsc-completion-snippet { color: #5F6A73; }
   .gs-promotion a.gs-title:link,
   .gs-promotion a.gs-title:link *,
   .gs-promotion .gs-snippet a:link { color: #0066CC; }
   .gs-promotion a.gs-title:visited,
   .gs-promotion a.gs-title:visited *,
   .gs-promotion .gs-snippet a:visited { color: #0066CC; }
   .gs-promotion a.gs-title:hover,
   .gs-promotion a.gs-title:hover *,
   .gs-promotion .gs-snippet a:hover { color: #0066CC; }
   .gs-promotion a.gs-title:active,
   .gs-promotion a.gs-title:active *,
   .gs-promotion .gs-snippet a:active { color: #0066CC; }
   .gs-promotion .gs-snippet,
   .gs-promotion .gs-title .gs-promotion-title-right,
   .gs-promotion .gs-title .gs-promotion-title-right *  { color: #333333; }
   .gs-promotion .gs-visibleUrl,
   .gs-promotion .gs-visibleUrl-short { color: #5F6A73; }
   </style>
</center>
<!-- End of Google Search Box -->
<br><br><br></p>
<div id="foot_bar">
  Copyright &copy; 1998-2019 Rachid Touzani&nbsp;
</div>
</div> <!-- main -->
</body>
</HTML>
